import request from '@/utils/request'

// 查询分销信息列表
export function listDistr(query) {
  return request({
    url: '/reward/distr/list',
    method: 'get',
    params: query
  })
}

// 查询分销信息详细
export function getDistr(distrId) {
  return request({
    url: '/reward/distr/' + distrId,
    method: 'get'
  })
}

// 新增分销信息
export function addDistr(data) {
  return request({
    url: '/reward/distr',
    method: 'post',
    data: data
  })
}

// 修改分销信息
export function updateDistr(data) {
  return request({
    url: '/reward/distr',
    method: 'put',
    data: data
  })
}

// 删除分销信息
export function delDistr(distrId) {
  return request({
    url: '/reward/distr/' + distrId,
    method: 'delete'
  })
}
